package fr.sunnydale.android.geek.entity.impl;

import android.graphics.Canvas;
import fr.sunnydale.android.geek.entity.IDrawableEntity;
import fr.sunnydale.android.geek.entity.ITiledEntity;
import fr.sunnydale.android.geek.thread.TimerThread;
import fr.sunnydale.android.geek.util.TileCoord;

public abstract class AbstractTiledEntity implements IDrawableEntity, ITiledEntity {

    public TileCoord mCoord = new TileCoord(0, 0);

    @Override
    public abstract void draw(Canvas canvas, TimerThread clock);

    @Override
    public void offset(int x, int y) {
        this.mCoord.setCoord(mCoord.x + x, mCoord.y + y);
    }

    @Override
    public void setXY(int x, int y) {
        this.mCoord.setCoord(x, y);
    }
}
